project(
        'bwl',
        'c',
        version: '0.0.1',
        license: 'MIT',
)

#subdir('3rdparty')

little_endian = host_machine.endian() == 'little'
big_endian = host_machine.endian() == 'big'

add_project_arguments([
        '-DWLR_USE_UNSTABLE',
        '-DWLR_LITTLE_ENDIAN=@0@'.format(little_endian.to_int()),
        '-DWLR_BIG_ENDIAN=@0@'.format(big_endian.to_int()),
], language: 'c')

wlroots = subproject('wlroots-0.15.1')
wlroots_deps = wlroots.get_variable('wlroots')
wlroots_protocols_client_header = wlroots.get_variable('protocols_client_header')

subdir('src')
